package com.mbyte.easy.stu.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mbyte.easy.stu.entity.TStudents;
import com.mbyte.easy.stu.mapper.TStudentsMapper;
import com.mbyte.easy.stu.service.ITStudentsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * lp
 */
@Service
public class TStudentsServiceImpl implements ITStudentsService {
    @Autowired
    private TStudentsMapper tStudentsMapper;    //红色波浪没事记得哈


    @Override
    public int insert(TStudents tStudents) {
        return tStudentsMapper.insert(tStudents);
    }

    @Override
    public int deleteAll(List<Long> ids) {
        return tStudentsMapper.deleteAll(ids);
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return tStudentsMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKey(TStudents tStudents) {
        return tStudentsMapper.updateByPrimaryKey(tStudents);
    }

    @Override
    public IPage<TStudents> find(Page<TStudents> tStudentsPage, TStudents tStudents, String startUpdatetime, String endUpdatetime,String startCreatetime,String endCreatetime) {

        return tStudentsMapper.find(tStudentsPage,tStudents,startUpdatetime,endUpdatetime,startCreatetime,endCreatetime);
    }

    @Override
    public TStudents selectByPrimaryKey(Long id) {
        return tStudentsMapper.selectByPrimaryKey(id);

    }
}
